SharePointPackageReader.FileExists Method

Returns true if a file exists at the specified path and the caller has the required permissions.

Parent Type: SharePointPackageReader

Namespace: Microsoft.LearningComponents.SharePoint

Assembly: Microsoft.LearningComponents.SharePoint.dll

Syntax
C#

public override bool FileExists (
string filePath

)

Parameters

filePath

The package-relative path to a file in the package.

Return Value

Returns true if a file exists. This method also returns false if path is a null reference, an invalid path, or a zero-length string. If the caller does not have sufficient permissions to read the specified file, no exception is thrown and the method returns false regardless of the existence of path.